Simulink Object
The Simulink Object mapping flavor is used to specify Simulink signal attributes that are part of the interface to TPT.
The following attributes are available:
SL_Slope / SL_Bias
The slope and bias calculation follows the formula:
SL_Signed
In case of fixed-point data types this attribute specifies the signedness of the scaled value in Simulink.
SL_Length
In case of fixed-point data types this attribute specifies the total number of bits for the scaled value in Simulink.
SL_FIXDT_ROUNDING_MODE
In case of fixed-point data types this attribute specifies the rounding mode that is used when values are exchanged between the TPT S-function and the SUT in Simulink.
SL_FIXDT_OVERFLOW_MODE
In case of fixed-point data types this attribute specifies the overflow mode that is used when values are exchanged between the TPT S-function and the SUT in Simulink.
SL_Min
The minimum value specified in Simulink.
SL_Max
The maximum value specified in Simulink.
SL_Data_Type
The name of data type in Simulink. If the option Natively use bus/enumeration/fixed-point data types specified by the SUT is enabled, see MATLAB/Simulink Platform - Import Interface, and the SL_Data_Type_Kind is ENUM
or BUS
, this data type is directly used by the TPT S-function. In this case, the definition in Simulink must match with the data type in TPT. If the SL_Data_Type_Kind is BUS
and this attribute is not set, TPT will automatically generate a suitable Simulink.Bus
object that will be used then.
SL_Data_Type_Kind:
The kind of data type in Simulink. This may be BUILT-IN
, ENUM
, FIXED-POINT
, BUS
or FCN_CALL
.
SL_Non_Virtual_Bus
In case of bus signals this attribute specifies if the signal is a non-virtual bus.
SL_Data_Type_Mode
In case of Simulink.Numeric
data types this is the data type mode specified for the type.
SL_Class_Name
The class name for the Simulink signal or parameter object if used.
SL_Custom_Storage_Class
The storage class defined by the Simulink signal or parameter object if used.
SL_Calibration_Numerator
In case of Simulink.DualScaledParameter
objects this is the calibration numerator.
SL_Calibration_Denumerator
In case of Simulink.DualScaledParameter
objects this is the calibration denumerator.